<?php 

/**
 * {controller name="index" method="openThisMethod"}
 */
function smarty_function_controller($params, $smarty)
{
	
	if(!isset($params['name']) || !isset($params['method']))
	{
		return "error: name or method args are empty!";
	}

	/*
	 * if(!$this->inspect_args(array("name","method"))) return false;
			
			$_tmp = new LoadFramework();
			
			$_content = $_tmp->__doReturn($this->args['name'], $this->args['method']);
			
			$this->view->assign($_tmp->getView()->getTemplateVars());
			
			$this->set_output($_content);
	 */
	
	$yomm_boot = new Yomm_Boot();
	
	$yomm_boot_return = $yomm_boot->doReturn($params['name'], $params['method']);
	
	return $yomm_boot_return;
	
}